Ray tracing done right